<?php

return [
    [
        'name' => '__tips__',
        'title' => '温馨提示',
        'type' => 'string',
        'content' => [],
        'value' => '1. 若需开启wss协议，请先配置<b>ssl证书</b>、<b>ssl证书KEY</b>并重启服务才会生效；https站点必须配置wss<br>'."\n"
            .'                      2. <b>WebSocket端口</b>需对外开放<br>'."\n",
        'rule' => '',
        'msg' => '',
        'tip' => '',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'wss_switch',
        'title' => 'wss协议链接',
        'type' => 'radio',
        'content' => [
            '不开启',
            '开启',
        ],
        'value' => '1',
        'rule' => '',
        'tip' => '请先参考常见问题配置好wss服务再开启，否则将无法链接',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'ssl_cert_file',
        'title' => 'ssl证书',
        'type' => 'string',
        'content' => [],
        'value' => '/www/server/panel/vhost/cert/pt.crdev.cn/fullchain.pem',
        'rule' => '',
        'tip' => '请填写证书pem或crt文件的绝对路径',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'ssl_key_file',
        'title' => 'ssl证书KEY',
        'type' => 'string',
        'content' => [],
        'value' => '/www/server/panel/vhost/cert/pt.crdev.cn/privkey.pem',
        'rule' => '',
        'tip' => '请填写证书密匙(key)文件的绝对路径',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'websocket_port',
        'title' => 'WebSocket端口',
        'type' => 'string',
        'content' => [],
        'value' => '7610',
        'rule' => '',
        'msg' => '',
        'tip' => '开放一个端口,并填写至此处,默认请开放1818端口',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'register_port',
        'title' => '服务注册端口',
        'type' => 'string',
        'content' => [],
        'value' => '1239',
        'rule' => '',
        'tip' => '无需对外开放,属未被占用的端口即可',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'internal_start_port',
        'title' => '内部通讯起始端口',
        'type' => 'string',
        'content' => [],
        'value' => '3100',
        'rule' => '',
        'tip' => '无需对外开放,属未被占用的端口即可',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'gateway_process_number',
        'title' => 'Gateway进程数',
        'type' => 'string',
        'content' => [],
        'value' => '2',
        'rule' => '',
        'tip' => '设置为CPU核数相等的数量性能最好',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'worker_process_number',
        'title' => 'BusinessWorker进程数',
        'type' => 'string',
        'content' => [],
        'value' => '4',
        'rule' => '',
        'tip' => '根据业务有无阻塞式IO,设为CPU核数的1-3倍',
        'ok' => '',
        'extend' => '',
    ],
];
